package com.hyj.shop.project.article.mapper;

import com.hyj.shop.project.article.domain.LikeArticle;
import com.hyj.shop.project.index.domain.Article;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface ArticleMapper {

//    提交评论
    public int addArticleReadCount(int articleId);
    public int addArticleLikeCount(LikeArticle likeArticle);
    public LikeArticle articleIsLike(@Param("userId") int userId, @Param("articleId") int articleId);
    public int addLikeArticle(@Param("userId") int userId, @Param("articleId") int articleId);
    public Article nextArticle(int articleId);
    public Article preArticle(int articleId);
}
